﻿using BCCommon;
using BCDto.TMS.Driver.DriverExamine;

namespace BCService.TMS.Driver.DriverExamine
{
    /// <summary>
    /// 司机考试试卷服务接口
    /// </summary>
    public interface IDriverExaminePaperService
    {
        /// <summary>
        /// 添加司机考试试卷
        /// </summary>
        /// <param name="dto">司机考试试卷模型</param>
        /// <returns></returns>
        DriverExaminePaperDto Add(DriverExaminePaperRequestDto dto);
        /// <summary>
        /// 更新司机考试试卷
        /// </summary>
        /// <param name="paperId">试卷Id</param>
        /// <param name="dto">司机考试试卷模型</param>
        /// <returns></returns>
        DriverExaminePaperDto Update(long paperId, DriverExaminePaperRequestDto dto);
        /// <summary>
        /// 删除司机考试试卷
        /// </summary>
        /// <param name="paperId">试卷Id</param>
        void Delete(int paperId);
        /// <summary>
        /// 获取司机考试试卷
        /// </summary>
        /// <param name="paperId">试卷Id</param>
        /// <returns></returns>
        DriverExaminePaperDto GetExaminePaperById(int paperId);
        /// <summary>
        /// 获取司机考试试卷列表
        /// </summary>
        /// <param name="index">当前页码</param>
        /// <param name="size">当前页大小</param>
        /// <returns></returns>
        PageableList<DriverExaminePaperDto> GetDriverExaminePapers(int index, int size);
    }
}
